package com.zb.code.controller;


import com.zb.annotation.SystemLog;
import com.zb.constant.OperationLogModuleType;
import com.zb.constant.OperationLogType;
import com.zb.result.PageUtil;
import com.zb.result.Result;
import com.zb.service.ZjCodeGoodsChangeLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 编码商品变更记录表 前端控制器
 * </p>
 *
 * @author WEN
 * @since 2023-09-04
 */
@Api(tags = "编码商品变更记录类接口")
@RestController
@RequestMapping("/codeGoodsChangeLog")
public class ZjCodeGoodsChangeLogController {
    @Resource
    private ZjCodeGoodsChangeLogService codeGoodsChangeLogService;

    @ApiOperation("编码商品变更记录(编码溯源)列表查询接口")
    @PostMapping("/getList/{codeId}")
    public Result getList(@PathVariable @ApiParam(value = "编码ID", required = true) Long codeId, @RequestBody PageUtil pageUtil) {
        return Result.success().data(codeGoodsChangeLogService.getList(codeId, pageUtil));
    }

}
